Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deny: add workspace dependency lints #355

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

cbgbt
Copy link
Contributor

@cbgbt cbgbt commented Aug 28, 2024

Description of changes:
This adds workspace dependency checks with cargo-deny.

The options enforce the following:

  • duplicates = deny: emit an error for each dependency declaration that does not use workspace = true
  • include-path-dependencies = true: Include path dependencies in duplication check
  • unused = "deny": emit an error for each dependency not used in the workspace

Testing done:
I rewrote twoliter's Cargo.toml under sources to express its own dependency on serde-json, and noted that make deny flagged this as an error.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@cbgbt cbgbt merged commit 4d19105 into bottlerocket-os:develop Aug 28, 2024
1 check passed
@cbgbt cbgbt deleted the workspace-deps branch August 28, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants